package com.threeti.mecool.core.domain.model.acl;


/**
 * ACL相关常量
 * 
 * @author Jay Meng
 */
public abstract class PermissionConst {
  public static final int P_ADMIN_MASK = 16;
  public static final int P_READ_MASK = 1;
  public static final int P_WRITE_MASK = 2;
  public static final int P_CREATE_MASK = 4;
  public static final int P_DELETE_MASK = 8;
  
  public static final String P_ADMIN_STR = "ADMINISTRATION";
  public static final String P_READ_STR = "READ";
  public static final String P_WRITE_STR = "WRITE";
  public static final String P_CREATE_STR = "CREATE";
  public static final String P_DELETE_STR = "DELETE";
  
  public static final String P_MOUDLE_ID_SEPARATOR = ";";
  
//  static {
//    P_ADMIN_MASK = BasePermission.ADMINISTRATION.getMask();//16
//    P_READ_MASK = BasePermission.READ.getMask();//1
//    P_WRITE_MASK = BasePermission.WRITE.getMask();//2
//    P_CREATE_MASK = BasePermission.CREATE.getMask();//4
//    P_DELETE_MASK = BasePermission.DELETE.getMask();//8
//  }
  
  //配置管理模块->
  public static final String[] MODULE_ADMIN = {"100", "m_admin"};
  public static final String[] MODULE_ADMIN_GROUP = {"100000", "m_admin_group"};
  public static final String[] MODULE_ADMIN_USR_ACL = {"100001", "m_admin_usracl"};
  public static final String[] MODULE_ADMIN_WORKFLOW = {"100002", "m_admin_wf"};
  public static final String[] MODULE_ADMIN_PROJECT = {"100003", "m_admin_proj"};
  public static final String[] MODULE_ADMIN_STORE = {"100004", "m_admin_store"};
  public static final String[] MODULE_ADMIN_ROLETASK_AIM = {"100005", "m_admin_roletask_aim"};
  //<-
  
  //我的计划任务模块->
  public static final String[] MODULE_MYPLAN = {"102", "m_myplan"};
  public static final String[] MODULE_MYPLAN_GROUP = {"102000", "m_myplan_group"};
  public static final String[] MODULE_MYPLAN_CO_STOREVISITING = {"102001", "m_myplan_co_storevisiting"};//协同巡店
  //<-
  
  //下属工作跟踪模块->
  public static final String[] MODULE_SUB = {"103", "m_sub"};
  public static final String[] MODULE_SUB_GROUP = {"103000", "m_sub_group"};
  public static final String[] MODULE_SUB_TASK_ASSIGN = {"103001", "m_sub_task_assign"};
  public static final String[] MODULE_SUB_PLANTASK_VIEW = {"103002", "m_sub_plantask_view"};
  public static final String[] MODULE_SUB_PLANTASK_AUDIT = {"103003", "m_sub_plantask_audit"};
  public static final String[] MODULE_SUB_PLAN_NEEDTOBE_AUDITED = {"103004", "m_sub_plan_needtobe_audited"};
  //<-
  
  //项目管理模块->
  public static final String[] MODULE_PROJMGMT = {"104", "m_projmgmt"};
  public static final String[] MODULE_PROJMGMT_GROUP = {"104000", "m_projmgmt_group"};
  //<-
  
  //消息公告模块->
  public static final String[] MODULE_MSG = {"105", "m_msg"};
  public static final String[] MODULE_MSG_GROUP = {"105000", "m_msg_group"};
  //<-
  
  //分析报表模块->
  public static final String[] MODULE_RPT = {"106", "m_rpt"};
  public static final String[] MODULE_RPT_GROUP = {"106000", "m_rpt_group"};
  //<-
}
